import java.util.Random;
import java.util.Scanner;

public class eatWhat {


    public static void func0() {
        Random random = new Random();
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入1继续往下走：");
        scanner.nextInt();
        System.out.println("下面是搭配：");

        int choice = random.nextInt(3);
        switch (choice) {
            case 0:
                System.out.println("普通一肉一素搭配");
                break;
            case 1:
                System.out.println("随机两肉一素");
                break;
            case 2:
                System.out.println("鸡腿+一肉");
                break;
        }
        System.out.println("祝您用餐愉快！！！");
    }
    public static void func1() {
        Random random = new Random(3);
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入1继续往下走：");
        scanner.nextInt();
        System.out.println("下面是螺蛳粉的店家：");

        int choice = random.nextInt();
        switch (choice) {
            case 0:
                System.out.println("一楼的螺蛳粉店");
                break;
            case 1:
                System.out.println("二楼的螺蛳粉店");
                break;
            case 2:
                System.out.println("三楼的螺蛳粉店");
                break;
        }
        System.out.println("祝您用餐愉快！！！");

    }
    public static void func2() {
        Random random = new Random(3);
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入1继续往下走：");
        scanner.nextInt();
        System.out.println("下面是小炒的种类：");
        int choice = random.nextInt();
        switch (choice) {
            case 0:
                System.out.println("炒粉！");
                break;
            case 1:
                System.out.println("炒面！");
                break;
            case 2:
                System.out.println("炒饭！");
                break;
        }
        System.out.println("祝您用餐愉快！！！");

    }
    public static void func3() {
        Random random = new Random();
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入1继续往下走：");
        scanner.nextInt();
        System.out.println("下面是点外卖的选择：");

        int choice = random.nextInt(3);
        switch (choice) {
            case 0:
                System.out.println("水煮肉片！");
                break;
            case 1:
                System.out.println("随机10块钱拼饭！");
                break;
            case 2:
                System.out.println("炸鸡类！");
                break;
        }
        System.out.println("祝您用餐愉快！！！");

    }
    public static void func4() {
        Random random = new Random(4);
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入1继续往下走：");
        scanner.nextInt();
        System.out.println("下面是面的种类：");

        int choice = random.nextInt(4);
        switch (choice) {
            case 0:
                System.out.println("桂林米粉！");
                break;
            case 1:
                System.out.println("鱼粉！");
                break;
            case 2:
                System.out.println("过桥米线！");
                break;
            case 3:
                System.out.println("重庆酸辣粉！");
                break;
        }
        System.out.println("祝您用餐愉快！！！");

    }
    public static void main(String[] args) {
        Random random = new Random();
        System.out.println("尊贵的二号食堂用户，下面是类型选择：");
        int choice = random.nextInt(5);
        switch (choice) {
            case 0:
                System.out.println("一楼的饭!");
                func0();
                break;
            case 1:
                System.out.println("螺蛳粉！");
                func1();
                break;
            case 2:
                System.out.println("小炒！");
                func2();
                break;
            case 3:
                System.out.println("点外卖！");
                func3();
                break;
            case 4:
                System.out.println("面/粉！");
                func4();
                break;
        }


    }
}
